package com.runner.track;

import com.badlogic.gdx.math.Vector2;
import com.runner.entity.CollisionEntity;
import com.runner.utility.Locator;

public abstract class Block extends CollisionEntity {

	public static float SCALE = 1;
	public static final float SPEED = 140 * RELATIVE_SPEED;

	public Block(Vector2 pos, TYPE type, String path, float scale) {
		super(pos, type, path, false, true, false, scale);
	}

	@Override
	public void update(float delta) {
		super.update(delta);
		physics.getBody().setLinearVelocity(-SPEED * Locator.getXGameSpeed() * delta, 0);
	}

}
